<?php
/**
 * Created by PhpStorm.
 * User: huynguyen
 * Date: 10/2/14
 * Time: 10:09 PM
 */

namespace Common\Models\Images;


class ImageLink extends \Phalcon\Mvc\Model
{

    const OBJECT_TYPE_VIDEO = 'video';
    const OBJECT_TYPE_FILE_VIDEO = 'file_video';
    const OBJECT_TYP_ARTIST = 'artist';
	protected $id;

	protected $object_id;

	protected $object_type;

	protected $image_id;

	protected $detailed_id;

	protected $type;

	protected $position;

    public function getSource()
    {
        return 'image_link';
    }
    
    public function initialize()
    {
        $this->setSource('image_link');

        $this->hasOne('image_id','Common\Models\Images\Images','id',array(
            'alias'     =>  'images'
        ));
    }
    
    /**
     * @param mixed $detailed_id
     */
    public function setDetailedId($detailed_id)
    {
        $this->detailed_id = $detailed_id;
    }

    /**
     * @return mixed
     */
    public function getDetailedId()
    {
        return $this->detailed_id;
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param mixed $image_id
     */
    public function setImageId($image_id)
    {
        $this->image_id = $image_id;
    }

    /**
     * @return mixed
     */
    public function getImageId()
    {
        return $this->image_id;
    }

    /**
     * @param mixed $object_id
     */
    public function setObjectId($object_id)
    {
        $this->object_id = $object_id;
    }

    /**
     * @return mixed
     */
    public function getObjectId()
    {
        return $this->object_id;
    }

    /**
     * @param mixed $object_type
     */
    public function setObjectType($object_type)
    {
        $this->object_type = $object_type;
    }

    /**
     * @return mixed
     */
    public function getObjectType()
    {
        return $this->object_type;
    }

    /**
     * @param mixed $position
     */
    public function setPosition($position)
    {
        $this->position = $position;
    }

    /**
     * @return mixed
     */
    public function getPosition()
    {
        return $this->position;
    }

    /**
     * @param mixed $type
     */
    public function setType($type)
    {
        $this->type = $type;
    }

    /**
     * @return mixed
     */
    public function getType()
    {
        return $this->type;
    }

} 